function ClickCopy(className){
    className = className || 'click-to-copy';
    let desArr =  document.getElementsByClassName(className);
    console.log(desArr);
    for(i = 0; i < desArr.length; i++){
        desArr[i].onclick = function(){
            console.log(this);
            window.clipboardData.setData("Text",this.innerHTML);
        }
    }
    
}

module.exports = ClickCopy